-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix wielding two-handed items with only one hand #40966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix wielding two-handed items with only one hand #40966
Conversation
|
Yowza lmao |
|
Guess I gotta fix my test afterall 😅 |
|
Not sure if we can just patch this out without breaking things. Monkeys have been able to wield melee weapons and guns for a while which I think is intentional? In addition holoclowns use this to wield melee weapons too which will be more impactful. Something something combat workgroup needs to chime in something something. Should be patched out though in favor of hand sizes like FSP suggested. |
|
Seems like a straight up bug to me to be able to wield two-handed weapons with only one hand. |
|
Ok I was looking at the requseted changes like I don't remember doing this. I definitely didn't create this method... Oh, this isn't my pr lmao. |
About the PR
Title
Thanks to @VerinSenpai for writing an integration test that found this bug.
To reproduce on master:
removehandcommand so that you only have one handWhy / Balance
bugfix
Technical details
CanWieldwas comparing the number of freeable hands. However that included the hand the weapon was held in, which should not count as dropable when trying to wield it.To fix this we add a new method to count free hands that can ignore a given item when counting.
We cannot just subtract 1 because the weapon itself might be unremoveable.
Media
Requirements
Breaking changes
Changelog
🆑